package com.feicheng.common.wx;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@PropertySource(value = {"classpath:wx.properties"}, encoding = "UTF-8")
@Component("wx-app")
@ConfigurationProperties(prefix = "app")
public class WxAppInfo implements IWxInfo {

    @Value("${app.AppId}")
    private String appId;

    @Value("${app.AppSecret}")
    private String secret;

    @Override
    public String getAppId() {
        return appId;
    }

    @Override
    public String getAppSecret() {
        return secret;
    }
}
